import {
    createMemoryHistory,
    createRouter,
    createWebHistory,
    RouteRecordRaw,
} from 'vue-router';

import Index from '@/view/index.vue';
import Room from '@/view/room.vue';
import Game from '@/view/game.vue';
import Mode from '@/view/mode.vue';
import Multi from '@/view/multi.vue';
import Build from '@/view/build.vue';
import Setting from '@/view/setting.vue';
import SettingVirtualButton from '@/view/settingVirtualButton.vue';
import Tutorial from '@/view/tutorial.vue'

const routes: RouteRecordRaw[] = [
    { path: '/', component: Index },
    { path: '/room', component: Room },
    { path: '/game', component: Game },
    { path: '/mode', component: Mode },
    { path: '/multi', component: Multi },
    { path: '/build', component: Build },
    { path: '/setting', component: Setting },
    { path: '/settingVirtualButton', component: SettingVirtualButton },
    { path: '/tutorial', component: Tutorial },
];

const router = createRouter({
    history: createMemoryHistory(),
    // history: createWebHistory(),
    routes,
});

export default router;
